package com.ofr.producer;

import com.ofr.qualifiers.CurrentSession;
import com.ofr.session.UserSession;

import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.New;
import javax.enterprise.inject.Produces;

/**
 * Created with IntelliJ IDEA.
 * User: imon
 * Date: 3/29/13
 * Time: 10:29 PM
 * To change this template use File | Settings | File Templates.
 */
public class UserSessionProducer {

    @Produces
    @SessionScoped
    @CurrentSession
    public UserSession getUserSession(@New UserSession userSession){
        return userSession;
    }
}
